import {t, api, message, bs} from "@/service/index.js"


export default {
    url: {
        find: "/setting/find",
        update: "/setting/update",
        randomKey: "/setting/randomKey",
    },
    find(data) {
        return api.post(this.url.find,data);
    },
    update(data){
        return api.post(this.url.update,data).then(res => {
            message.success(t("btn.success"))
            return true
        }).catch(e => {
            return false
        })
    },
    randomKey(data){
        return api.post(this.url.randomKey,data);
    }
}